From f6c2710c3bbd2b028af34256973405d13be83688 Mon Sep 17 00:00:00 2001 From: "Karl O. Pinc" Date: Sat, 23 Jan 2021 16:13:14 -0600 Subject: [PATCH] Add a setting for uploaded file format --- examples/etc/pgwui.ini | 13 +++++++++++++ examples/misc/development.ini | 13 +++++++++++++ 2 files changed, 26 insertions(+) diff --git a/examples/etc/pgwui.ini b/examples/etc/pgwui.ini index ed610ec..f4e0f4d 100644 --- a/examples/etc/pgwui.ini +++ b/examples/etc/pgwui.ini @@ -213,6 +213,7 @@ pgwui.dry_run = False # literal_column_headings = off # menu_label = upload -- Upload File Into Database # trim = choice-yes +# file_format = csv # # literal_column_headings # Take uploaded column headings literally? @@ -247,6 +248,13 @@ pgwui.dry_run = False # choice-yes Present a checkbox, default to "yes". # choice-no Present a checkbox, default to "no". # no-never Never transform data into NULL. +# +# file_format +# The format of the uploaded file +# +# The available choices are: +# csv The CSV format. +# tab Tab separated values. # pgwui_bulk_upload @@ -256,6 +264,7 @@ pgwui.dry_run = False # menu_label = bulk_upload -- Upload Many Files Into PostgreSQL # map_file = contents.yml # trim = choice-yes +# file_format = csv # # literal_column_headings = no-never # Take uploaded column headings literally? @@ -303,6 +312,10 @@ pgwui.dry_run = False # null = choice-yes # Insert NULL values. # See pgwui_upload above for details. +# +# file_format = csv +# The format of the uploaded files. +# See pgwui_upload above for details. # diff --git a/examples/misc/development.ini b/examples/misc/development.ini index 3d30e91..dc0748b 100644 --- a/examples/misc/development.ini +++ b/examples/misc/development.ini @@ -219,6 +219,7 @@ pgwui.validate_hmac = False # menu_label = upload -- Upload File Into Database # trim = choice-yes # null = choice-yes +# file_format = csv # # literal_column_headings # Take uploaded column headings literally? @@ -253,6 +254,13 @@ pgwui.validate_hmac = False # choice-yes Present a checkbox, default to "yes". # choice-no Present a checkbox, default to "no". # no-never Never transform data into NULL. +# +# file_format +# The format of the uploaded file +# +# The available choices are: +# csv The CSV format. +# tab Tab separated values. # pgwui_bulk_upload @@ -263,6 +271,7 @@ pgwui.validate_hmac = False # map_file = contents.yml # trim = choice-yes # null = choice-yes +# file_format = csv # # literal_column_headings = no-never # Take uploaded column headings literally? @@ -310,6 +319,10 @@ pgwui.validate_hmac = False # null = choice-yes # Insert NULL values. # See pgwui_upload above for details. +# +# file_format = csv +# The format of the uploaded files. +# See pgwui_upload above for details. # -- 2.34.1